package com.drops.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @ClassName: ReUtil
 * @Description: TODO
 * @Author: Summer
 * @Date: 2021/7/28 16:55
 * @Version: v1.0.0
 * @Description:
 **/
public class ReUtil {


    public static String hasVersion(String context,String regex){
        String result = null;
        Pattern p = Pattern.compile(regex);
        Matcher matcher = p.matcher(context);
        while (matcher.find()){
            result = matcher.group(0);
        }
        return result;
    }

    public static void main(String[] args) {

//        ReUtil.isSpringCloudStarter("spring-cloud-starter-1.4.2232.jar");
    }
}
